package com.foxmail.aroundme.boring.utils.m_enum;

import android.support.annotation.IntDef;

import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;

/**
 * Created by gzl on 1/22/17.
 * 数据加载模式
 */

public class DataLoadType {

    @IntDef({TYPE_REFRESH_SUCCESS, TYPE_REFRESH_FAIL, TYPE_REFRESH_NETWORK_ERROR, TYPE_REFRESH_NO_DATA, TYPE_LOAD_MORE_SUCCESS,
            TYPE_LOAD_MORE_FAIL, TYPE_LOAD_MORE_NETWORK_ERROR, TYPE_LOAD_MORE_NO_DATA, TYPE_LOAD_DB_SUCCESS, TYPE_LOAD_DB_NO_DATA})
    @Retention(RetentionPolicy.SOURCE)
    public @interface LoadType {
    }

    /**
     * 刷新成功
     */
    public static final int TYPE_REFRESH_SUCCESS = 1;

    /**
     * 刷新失败
     */
    public static final int TYPE_REFRESH_FAIL = 2;

    /**
     * 刷新时网络问题
     */
    public static final int TYPE_REFRESH_NETWORK_ERROR = 3;

    /**
     * 刷新时没有数据
     */
    public static final int TYPE_REFRESH_NO_DATA = 4;

    /**
     * 加载更多成功
     */
    public static final int TYPE_LOAD_MORE_SUCCESS = 5;

    /**
     * 加载更多失败
     */
    public static final int TYPE_LOAD_MORE_FAIL = 6;

    /**
     * 加载更多时网络问题
     */
    public static final int TYPE_LOAD_MORE_NETWORK_ERROR = 7;


    /**
     * 加载更多时没有数据
     */
    public static final int TYPE_LOAD_MORE_NO_DATA = 8;

    /**
     * 从数据库获取数据
     */
    public static final int TYPE_LOAD_DB_SUCCESS = 9;

    /**
     * 从数据库未获取数据
     */
    public static final int TYPE_LOAD_DB_NO_DATA = 10;

}
